<template>
	<view style="padding: 30rpx;">
		<navigator url="/pages/APIpages/LogPage/LogPage"><button >打印日志</button></navigator>
		<navigator url="/pages/APIpages/TimerPage/TimerPage"><button >计时器</button></navigator>
		<navigator url="/pages/APIpages/RefreshPage/RefreshPage"><button >页面刷新</button></navigator>
		<navigator url="/pages/StoragePage/StoragePage"><button @click="goStoPage()" >数据缓存</button></navigator>
		<navigator url="/pages/Displaypicture/Displaypicture"><button @click="goStoPage()" >显示图片</button></navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(){
			uni.preloadPage({
				url:"/pages/StoragePage/StoragePage"
			})
			// 预加载
		},
		methods: {
			goStoPage(){
				uni.navigateTo({
					url:"/pages/StoragePage/StoragePage",
				success(){
					console.log("navigateTo---->success");
				},
				fail(e){
					console.log("navigateTo---->fail:"+JSON.stringify(e));
				},
				complete(){
					console.log("navigateTo---->complete");
				},
				})
				
				// uni.switchTab({
				// 	url:""
				// })调到主件页Tab页，Tab页不可以传参
					
				
			}
		}
	}
</script>

<style>

</style>
